package com.Thread常用API.取名字;

public class ThreadDemo01 {
    public static void main(String[] args) {
        //通过构造器注入名字
        new MyThread("一号线程").start();
        new MyThread("二号线程").start();
        new MyThread("三号线程").start();

        for (int i = 0; i < 5; i++) {
            System.out.println("main线程" + i);
        }
    }
}
